<template>
  <div class="property-dialog">
    <Condition v-if="nodeData.type === 'polyline'" :is-detail="isDetail" :lf="lf" :node-data="nodeData" @on-close="handleClose" />
    <CommonProperty v-else :is-detail="isDetail" :lf="lf" :node-data="nodeData" @on-close="handleClose" />
  </div>
</template>
<script setup>
import CommonProperty from "./CommonProperty.vue";
import Condition from "./Condition.vue";
defineProps({
  nodeData: {
    type: Object,
    default: () => {}
  },
  lf: {
    type: Object,
    default: () => {}
  },
  isDetail: {
    type: Boolean,
    default: false
  }
});

const emit = defineEmits(["set-properties-finish"]);

const handleClose = () => {
  emit("set-properties-finish");
};
</script>
